try:
    x = int(input("Enter a number: "))
    y = 1 / x
    print(y)
except Exception as e:
    print("An error occurred:", e)
finally:
    print("The program is done.")
